home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / ccinter.6 < prev    next >
Text File  |  1996-07-16  |  2KB  |  44 lines

  1. .TH CCINTER
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. CCINTER
  5.  
  6.  
  7.  
  8.  ListType CCINTER( CurveType Crv1, CurveType Crv2, NumericType Epsilon,
  9.                                                        NumericType SelfInter )
  10.  
  11.  or
  12.  
  13.  SurfaceType CCINTER( CurveType Crv1, CurveType Crv2, NumericType Epsilon,
  14.                                                        NumericType SelfInter )
  15.  
  16. Computes the intersection point(s) of Crv1 and Crv2 in the
  17. XY plane. Since this computation involves numeric operations, Epsilon
  18. controls the accuracy of the parametric values of the result.
  19. It returns a list of PointTypes, each containing the parameter of Crv1
  20. in the X coordinate, and the parameter of Crv2 in the Y coordinate.
  21. If, however, Epsilon is negative, a scalar field surface representing
  22. the square of the distance function is returned instead.
  23. If SelfInter is TRUE, Crv1 and Crv2 can be the same
  24. curve, and self-intersection points are searched instead.
  25.  
  26. Example:
  27.  
  28.  crv1 = cbspline( 3,
  29.                   list( ctlpt( E2, 0, 0 ),
  30.                         ctlpt( E2, 0, 0.5 ),
  31.                         ctlpt( E2, 0.5, 0.7 ),
  32.                         ctlpt( E2, 1, 1 ) ),
  33.                   list( KV_OPEN ) );
  34.  crv2 = cbspline( 3,
  35.                   list( ctlpt( E2, 1, 0 ),
  36.                         ctlpt( E2, 0.7, 0.25 ),
  37.                         ctlpt( E2, 0.3, 0.5 ),
  38.                         ctlpt( E2, 0, 1 ) ),
  39.                   list( KV_OPEN ) );
  40.  inter_pts = CCINTER( crv1, crv2, 0.0001, FALSE );
  41.  
  42. Computes the parameter values of the intersection point of crv1 and
  43. crv2 to a tolerance of 0.0001.
  44.